<?php
/**
 * ShopEx licence
 *
 * @copyright  Copyright (c) 2005-2010 ShopEx Technologies Inc. (http://www.shopex.cn)
 * @license  http://ecos.shopex.cn/ ShopEx License
 */
$db['orderform_delis']=array (
  'columns' =>
  array (  
    'id' =>
    array (
      'type' => 'int(10)',
      'required' => true,
      'pkey' => true,
      'extra' => 'auto_increment',
      'editable' => false,
      'label' => 'ID',
      'comment' => app::get('wms')->_('ID'),
    ),
    'delivery_bn' =>
    array (
      'type' => 'varchar(32)',
      'required' => true,
      'label' => '发货单号',
      'comment' => '配送流水号',
      'editable' => false,
      'width' =>140,
      'searchtype' => 'has',
      'filtertype' => 'yes',
      'filterdefault' => true,
      'in_list' => true,
      'default_in_list' => true,
      'is_title' => true,
    ),
    'delivery_id' =>
    array (
      'type' => 'table:delivery@wms',
      'required' => true,
      'default' => 0,
      'editable' => false,
    ),
    'axdocno' =>
    array (
      'type' => 'varchar(30)',
      'editable' => false,
      'in_list' => true,
      'default_in_list' =>true,
      'label' => 'AX订单号',
      'searchtype' =>'has',
      'comment' => app::get('wms')->_('AX订单号'),
    ),
    'orderform_id' =>
    array (
      'type' => 'table:orderform@wms',
      'required' => true,
      'default' => 0,
      'editable' => false,
    ),
    'shop_id' =>
    array (
      'type' => 'table:shop@ome',
      'label' => '来源店铺',
      'width' => 75,
      'editable' => false,
      'in_list' => true,
      'filtertype' => 'normal',
      'filterdefault' => true,
    ),
    'logi_no' =>
    array (
      'type' => 'varchar(50)',
      'label' => '物流单号',
      'comment' => '物流单号',
      'editable' => false,
      'width' =>110,
      'in_list' => true,
      'default_in_list' => true,
    ),
    'status' =>
    array (
      'type' => 'tinybool',
      'default' => 'N',
      'editable' => false,
      'in_list' => true,
      'default_in_list' =>true,
      'label' => '状态',
      'searchtype' =>'has',
      'comment' => app::get('wms')->_('状态'),
    ),
    'remark' =>
    array (
      'type' => 'varchar(200)',
      'editable' => false,
      'in_list' => true,
      'default_in_list' =>true,
      'label' => '备注',
      'searchtype' =>'has',
      'comment' => app::get('wms')->_('备注'),
    ),
    'last_modify' =>
    array (
      'type' => 'last_modify',
      'comment' => '修改时间',
      'label' => '修改时间',
      'in_list' => true,
      'default_in_list' =>true,
    ),
  ),
  'index' =>
     array (
         'ind_id' =>
         array (
             'columns' =>
             array (
                 0 => 'id',
             ),
         ),
         'ind_delivery_bn' =>
         array (
             'columns' =>
             array (
                 0 => 'delivery_bn',
             ),
         ),
         'ind_axdocno' =>
         array (
             'columns' =>
             array (
                 0 => 'axdocno',
             ),
         ),
         'ind_shop_id' =>
         array (
             'columns' =>
             array (
                 0 => 'shop_id',
             ),
         ),
         'ind_logi_no' =>
         array (
             'columns' =>
             array (
                 0 => 'logi_no',
             ),
         ),
         'ind_status' =>
         array (
             'columns' =>
             array (
                 0 => 'status',
             ),
         ),
   ),
  'comment' => app::get('wms')->_('备货通知单'),
);
